Skip to content

Instantly share code, notes, and snippets.

@rameerez
rameerez / telegram-mtproxy.md
Last active January 23, 2026 10:03
Telegram Proxy How-To: complete and up-to-date MTProxy tutorial

How to set up a Telegram Proxy (MTProxy)

This tutorial will teach you how to set up a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail, although you can use any other Linux distribution and cloud provider.

Using a Telegram proxy is a safe, easy and effective way of overcoming Telegram bans. It's useful, for example, to keep using Telegram under tyrannical regimes, or to circumvent judges' decisions to block Telegram.

Telegram proxies are a built-in feature in all Telegram apps (both mobile and desktop). It allows Telegram users to connect to a proxy in just one or two clicks / taps.

Telegram proxies are safe: Telegram sends messages using their own MTProto secure protocol, and the proxy can only see encrypted traffic – there's no way for a proxy to decrypt the traffic and read the messages. The proxy does not even know which Telegram users are using the proxy, all the proxy sees is just a list of IPs.

@sunmeat
sunmeat / Program.cs
Last active January 23, 2026 10:00
solving #1 (interfaces)
using System.Text;
namespace DuckInterfaces
{
// абстрактна качка
internal abstract class Duck
{
public virtual void Swim()
{
Console.WriteLine("качка плаває!");
@sunmeat
sunmeat / Program.cs
Last active January 23, 2026 10:00
inheritance problems
using System.Text;
namespace DuckExample
{
// абстрактна качка
internal abstract class Duck
{
public virtual void Quack()
{
Console.WriteLine("качка крякає!");
@RichardBronosky
RichardBronosky / README.MD
Last active January 23, 2026 09:59
cb - A leak-proof tee to the clipboard - Unify the copy and paste commands into one intelligent chainable command.

cb

A leak-proof tee to the clipboard

This script is modeled after tee (see [man tee][2]) and works on Linux, macOS, Cygwin, WSL/WSL2

It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable.

This project started as an answer to the StackOverflow question: [How can I copy the output of a command directly into my clipboard?][3]

@bagder
bagder / slop.md
Last active January 23, 2026 09:58
AI slop security reports submitted to curl

Slop

This collection is limited to only include the reports that were submitted as security vulnerabilities to the curl bug-bounty program on Hackerone.

Several other issues not included here are highly suspcious as well.

Reports

  1. [Critical] Curl CVE-2023-38545 vulnerability code changes are disclosed on the internet. #2199174
@1ffycat
1ffycat / tg-id.cs
Created January 23, 2026 09:54
C# (.NET 10) script to easily get the Telegram chat ID using the /id command
// Usage: dotnet run tg-id.cs "TOKEN"
#:package Telegram.Bot@22.8.1
#:property PublishAot=false
using Telegram.Bot;
using Telegram.Bot.Polling;
using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums;
using Telegram.Bot.Types.ReplyMarkups;
@1ffycat
1ffycat / tg-upload.cs
Last active January 23, 2026 09:56
C# (.NET 10) script to upload a set of media attachments via a Telegram bot while preserving the order (by Claude.ai)
#:package Telegram.Bot@22.8.*
#:package Spectre.Console@0.49.1
using System.Globalization;
using Spectre.Console;
using Telegram.Bot;
using Telegram.Bot.Types;
// Parse arguments
if (args.Length < 3)
@1ffycat
1ffycat / pre-commit
Created October 14, 2024 11:33
Git hook to run dotnet format and dotnet test before commiting and prohibit commit on failed tests
#!/bin/bash
# Run dotnet format
echo "Formatting code with dotnet-format..."
dotnet format
# Check the exit status of dotnet format
if [ $? -ne 0 ]; then
echo "dotnet format failed. Please fix the issues before committing."
exit 1
@allenyllee
allenyllee / medium.user.js
Last active January 23, 2026 09:55 — forked from mathix420/medium.user.js
Bypass Medium Paywall - Working at Jan 2026 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass (Manual Button + Badge + Fallback + Offline)
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 3.5
// @inject-into content
@ryanlua
ryanlua / fritzing-download.md
Last active January 23, 2026 09:54
Free download of Fritzing using the official download links